package Datastruct.Linked;

public class GoodsNode {
    public   int id;
    public   String name;
    public  double price;

    //指向下一个结点
    public GoodsNode next;

    public GoodsNode(int id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }
    // TODO: 2022/7/17

    @Override
    public String toString() {
        return "GoodsNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", next=" + next +
                '}';
    }
}
